/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.base.client;

import java.util.Collection;
import java.util.List;

import com.xy.lang.domain.Page;
import com.xy.lang.domain.Result;
import com.xy.biz.base.domain.resp.GetAttachmentResponse;
import com.xy.biz.base.domain.req.GetAttachmentRequest;
import com.xy.biz.base.domain.req.ListAttachmentRequest;

/**
 *
 *
 * @author wwj
 * @date 2021-4-6
 */
public interface AttachmentClient {

	/**
	 * 查找一个
	 *
	 * @param request
	 * @return
	 */
	Result<GetAttachmentResponse> getAttachment(GetAttachmentRequest request);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 * @return
	 */
	Result<List<GetAttachmentResponse>> listAttachmentById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<List<GetAttachmentResponse>> listAttachment(ListAttachmentRequest request);

	/**
	 * 统计个数
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<Integer> countAttachment(ListAttachmentRequest request);

	/**
	 * 分页查找
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<Page<GetAttachmentResponse>> pageAttachment(ListAttachmentRequest request);

}
